package src.lab02.test01.test03;

public class Student {
    public static void main(String[] args) {
        float computerScore=90;
        float mathScore=90;
        float englishScore=92;
        float sum=computerScore+mathScore+englishScore;
        float average=(computerScore+mathScore+englishScore)/3;
        System.out.println("总分为"+sum+"平均分为"+average);
        System.out.println("最高分为"+max(computerScore,mathScore,englishScore));
        System.out.println("最低分为"+min(computerScore,mathScore,englishScore));
    }
    static float max(float score1,float score2,float score3){
        float max=score1;
        if (max>score2){
            if (max>score3){
            }
            else max=score3;
        }else max=score2;
        if (max>score3){
        }
        else max=score3;
         return max;

}
    static float min(float score1,float score2,float score3){
        float min=score1;
        if (min<score2){
            if (min<score3){
            }
            else min=score3;
        }else min=score2;
        if (min<score3){
        }
        else min=score3;
        return min;

    }
    }


//3、 计算机成绩、数学成绩、英语成绩。要求可以求总分、平均分、最高分、最低分，并且可以输出一个学生的完整信息。